package com.sinog.core.model;

import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * @desc 菜单
 * @author zy
 * @date 2019年7月3日 11点00分
 */
@Data
public class Menu implements Comparable<Menu> {

    private String id;
    private String pid;
    private String text;
    private String iconCls;
    private String url;
    private Integer sn;
    private List<Menu> children = new ArrayList<>(16);

    @Override
    public int compareTo(Menu menu) {
        return sn - menu.sn;
    }
}